package com.bestv.bsr.core.validate;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author taojiacheng
 */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = TvIdValidator.class)
public @interface TvId {

    String message() default "不符合三段式规范";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
